/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bionic.shsc.entities;

import java.util.ArrayList;

/**
 *
 * @author ant
 */
public class AnswerData {

    private int answerID;
    private int questionID;
    private int answerOrder;
    private String text;
    private int weight;

    
    /* default answers*/
    public static ArrayList<AnswerData> getDefaultAnswers(int questionID) {
        // халтура. вообщето это надо тянуть из базы из dict_answer_variant
        // но пока так
      ArrayList<AnswerData>  dictAnswerVariant = new  ArrayList<AnswerData>(); 
      
      AnswerData answer = new AnswerData();
      answer.questionID = questionID;
      answer.answerOrder = 0;
      answer.answerID = 0;
      answer.text = "Slecht";
        answer.setWeight(1);
      dictAnswerVariant.add(answer);
      
      AnswerData answer2 = new AnswerData();
      answer2.questionID = questionID;
      answer2.answerOrder = 1;
      answer2.answerID = 1;
      answer2.text = "Gemiddeld";
        answer2.setWeight(2);
      dictAnswerVariant.add(answer2);
      
      AnswerData answer3 = new AnswerData();
      answer3.questionID = questionID;
      answer3.answerOrder = 2;
      answer3.answerID = 2;
      answer3.text = "Goed";
        answer3.setWeight(3);
      dictAnswerVariant.add(answer3);     
      
      
     return dictAnswerVariant;  
      
    }
    
    /**
     * @return the answerID
     */
    public int getAnswerID() {
        return answerID;
    }

    /**
     * @param answerID the answerID to set
     */
    public void setAnswerID(int answerID) {
        this.answerID = answerID;
    }

    /**
     * @return the questionID
     */
    public int getQuestionID() {
        return questionID;
    }

    /**
     * @param questionID the questionID to set
     */
    public void setQuestionID(int questionID) {
        this.questionID = questionID;
    }

    /**
     * @return the answerOrder
     */
    public int getAnswerOrder() {
        return answerOrder;
    }

    /**
     * @param answerOrder the answerOrder to set
     */
    public void setAnswerOrder(int answerOrder) {
        this.answerOrder = answerOrder;
    }

    /**
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * @param text the text to set
     */
    public void setText(String text) {
        this.text = text;
    }

    /**
     * @return the weight
     */
    public int getWeight() {
        return weight;
    }

    /**
     * @param weight the weight to set
     */
    public void setWeight(int weight) {
        this.weight = weight;
    }
}
